package com.zretc.entity;

import java.util.List;

/**
 * 商品分类
 * 马福又
 */
public class Type {
    private Integer typeId;//编号
    private Integer typeFatherId;//父类编号
    private String typeName;//名称
    private List<Product> products;//商品集合

    public Type() {
    }

    public Type(Integer typeId, Integer typeFatherId, String typeName, List<Product> products) {
        this.typeId = typeId;
        this.typeFatherId = typeFatherId;
        this.typeName = typeName;
        this.products = products;
    }


    public Integer getTypeId() {
        return typeId;
    }

    public void setTypeId(Integer typeId) {
        this.typeId = typeId;
    }

    public Integer getTypeFatherId() {
        return typeFatherId;
    }

    public void setTypeFatherId(Integer typeFatherId) {
        this.typeFatherId = typeFatherId;
    }

    public String getTypeName() {
        return typeName;
    }

    public void setTypeName(String typeName) {
        this.typeName = typeName;
    }

    public List<Product> getProducts() {
        return products;
    }

    public void setProducts(List<Product> products) {
        this.products = products;
    }

    @Override
    public String toString() {
        return "Type{" +
                "typeId=" + typeId +
                ", typeFatherId=" + typeFatherId +
                ", typeName='" + typeName + '\'' +
                ", products=" + products +
                '}';
    }
}
